//
//  MACRO.h
//  ElectronicMall
//
//  Created by 史伟文 on 14/12/22.
//  Copyright (c) 2014年 cczu. All rights reserved.
//

#ifndef ElectronicMall_MACRO_h
#define ElectronicMall_MACRO_h

// font
#define HEITIMEDIUM @"STHeitiSC-Medium"
#define HEITILIGHT  @"STHeitiSC-Light"

// color macro
#define RGBA(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)

// baseURL
#define baseURL [NSURL URLWithString:@"http://114.215.169.204/XuanR_YunBeiApp_Server/InfoSelectServer"]

//设备屏幕大小
#define __MainScreenFrame   [[UIScreen mainScreen] bounds]
//设备屏幕宽
#define __MainScreen_Width  __MainScreenFrame.size.width
//设备屏幕高
#define __MainScreen_Height __MainScreenFrame.size.height
// 不同屏幕宽度、高度调整
#define H(x) ((__MainScreenFrame.size.height) * ((x) / 568.0))
#define W(x) ((__MainScreenFrame.size.width) * ((x) / 320.0))

//常用路径
#define DOCUMENTS_PATH [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]

#endif
